package com.yanqu.road.entity.manor;

import com.yanqu.road.entity.DataObject;

/**
 * @author ：zfr
 * @date ：2021/10/11 16:40
 */
public class FishPondData extends DataObject {
    private long userId;            //玩家id
    private long recoveryTime;      //体力恢复时间
    private long fishPondScore;     //鱼塘积分
    private int fishPondLv;         //徽章等级
    private int fishingState;       //钓鱼状态(1处于判定状态)
    private long fishingJudgeTime;  //判定开始时间
    private int judgeFishId;        //判定中的珍稀鱼id
    private long judgeFishWeight;   //判定中的珍稀鱼重量
    private long exp;               //经验
    private long lastRecycleTime;   //上一次回收时间
    private boolean autoFinishTask;  //百连委托任务自动完成

    public FishPondData(long userId) {
        this.userId = userId;
    }

    public FishPondData() {
    }

    public void init(long initRecoveryTime, int initBadgeLv) {
        recoveryTime = initRecoveryTime;
        fishPondLv = initBadgeLv;
        setUpdateOption();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getRecoveryTime() {
        return recoveryTime;
    }

    public void setRecoveryTime(long recoveryTime) {
        if (this.recoveryTime != recoveryTime) {
            this.recoveryTime = recoveryTime;
            setUpdateOption();
        }
    }

    public long getFishPondScore() {
        return fishPondScore;
    }

    public void setFishPondScore(long fishPondScore) {
        if (this.fishPondScore != fishPondScore) {
            this.fishPondScore = fishPondScore;
            setUpdateOption();
        }
    }

    public int getFishingState() {
        return fishingState;
    }

    public void setFishingState(int fishingState) {
        if (this.fishingState != fishingState) {
            this.fishingState = fishingState;
            setUpdateOption();
        }
    }

    public long getFishingJudgeTime() {
        return fishingJudgeTime;
    }

    public void setFishingJudgeTime(long fishingJudgeTime) {
        if (this.fishingJudgeTime != fishingJudgeTime) {
            this.fishingJudgeTime = fishingJudgeTime;
            setUpdateOption();
        }
    }

    public int getJudgeFishId() {
        return judgeFishId;
    }

    public void setJudgeFishId(int judgeFishId) {
        if (this.judgeFishId != judgeFishId) {
            this.judgeFishId = judgeFishId;
            setUpdateOption();
        }
    }

    public long getJudgeFishWeight() {
        return judgeFishWeight;
    }

    public void setJudgeFishWeight(long judgeFishWeight) {
        if (this.judgeFishWeight != judgeFishWeight) {
            this.judgeFishWeight = judgeFishWeight;
            setUpdateOption();
        }
    }

    public int getFishPondLv() {
        return fishPondLv;
    }

    public void setFishPondLv(int fishPondLv) {
        if (this.fishPondLv != fishPondLv) {
            this.fishPondLv = fishPondLv;
            setUpdateOption();
        }
    }

    public long getExp() {
        return exp;
    }

    public void setExp(long exp) {
        if (this.exp != exp) {
            this.exp = exp;
            setUpdateOption();
        }
    }

    public long getLastRecycleTime() {
        return lastRecycleTime;
    }

    public void setLastRecycleTime(long lastRecycleTime) {
        if (this.lastRecycleTime != lastRecycleTime) {
            this.lastRecycleTime = lastRecycleTime;
            setUpdateOption();
        }
    }

    public boolean isAutoFinishTask() {
        return autoFinishTask;
    }

    public void setAutoFinishTask(boolean autoFinishTask) {
        if (this.autoFinishTask != autoFinishTask) {
            this.autoFinishTask = autoFinishTask;
            setUpdateOption();
        }
    }
}
